using System;
using App_Code.Modules;
using Portal.Data.Entity;

public partial class Modules_Category_Edit : CategoryModule
{
    protected override string Action
    {
        get { return "edit"; }
    }

    protected override void OnLoad(EventArgs e)
    {

    }

    protected void DetailPage_Click(object sender, EventArgs e)
    {
        EditPage(((Category)EditObject).DetailPage_ID);
    }

    protected void ListPage_Click(object sender, EventArgs e)
    {
        EditPage(((Category)EditObject).ListPage_ID);
    }

    private void EditPage(int? pageid)
    {
        ActionPage.newParams.Add("id", pageid);
        Forward("editpage");
    }
}